package org.example.judge_feign_api;

import org.example.judge_pojo.Auth;
import org.example.judge_pojo.Mail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("oj-judge-comment")
public interface CommentClient {

    @PostMapping(value = "/comment/mail/save",headers = {"token="+ Auth.ROOT})
    public void sendMail(@RequestBody Mail mail);

}
